RemoveAll Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Removes all the items in the collection that satisfy the condition defined by predicate.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public virtual ICollection<T> RemoveAll(
	Predicate<T> predicate
)
Visual Basic (Declaration)
Public Overridable Function RemoveAll ( _
	predicate As Predicate(Of T) _
) As ICollection(Of T)
Visual C++
public:
virtual ICollection<T>^ RemoveAll (
	Predicate<T>^ predicate
)

Parameters

predicate
Predicate<(Of <T>)>
A delegate that defines the condition to check for.

Return Value

Returns a collection of the items that were removed, in sorted order.

See Also